# coding=utf-8
from card_base import CardBase
from sgs.common.constants import cardType

class TaoYuanJieYi(CardBase):
    name = '桃园结义'
    def __init__(self, id, color, point):
        CardBase.__init__(self, id, color, point, cardType.NON_DELAY_SKILL)
        
    def action(self, cond, src, args):
        src.removeCard(self.id)
        allAlive = src.game.getAlivePlayers()
        for player in allAlive:
            player.changeHp(cond, 1)